package com.ks.common.quartz;

import com.ks.service.MonitorManager;
import org.apache.log4j.Logger;
import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

public class MonitorEmailJob2 implements Job {

    private static final org.apache.log4j.Logger log =  Logger.getLogger(MonitorEmailJob2.class);

    @Override
    public void execute(JobExecutionContext jobExecutionContext){

        log.info("quartz "+this.getClass().getSimpleName()+" start");
//        JobDataMap map=jobExecutionContext.getMergedJobDataMap();
//        System.out.println("参数值"+map.get("uname"));
        MonitorManager.getInstance().dailyTask();
        log.info("quartz "+this.getClass().getSimpleName()+" end");
    }
}